package com.summer.mall.service;

import com.summer.mall.common.ResponseService;
import com.summer.mall.entity.Category;

import java.util.List;

public interface CategoryService {

    ResponseService<String> addCategory (String categooryName, Integer parentId);

    ResponseService updateCategory(String categoryName, Integer categoryId);

    ResponseService<List<Category>> getChildrenParallelCategory(Integer parentId);

    ResponseService<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);

    ResponseService<Category> getById(Integer id);

}
